<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        function Father() {
            getName = function() {
                console.log(1);
            };
            return this;
        }
        Father.getName = function() {
            console.log(2);
        };
        Father.prototype.getName = function() {
            console.log(3);
        };
        var getName = function() {
            console.log(4);
        };

        function getName() {
            console.log(5);
        }
        //   问题？
        Father.getName(); // 2
        getName(); // 4
        new Father.getName(); // 2
        new Father().getName(); // 3
        new new Father().getName(); // 3
    </script>
</body>

</html>